import { Shop } from './shop.entity'
import { JoinTable, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { ManyToOne } from 'typeorm'

@Entity()
export class ShopTask {
  @PrimaryGeneratedColumn()
  id: number

  @ManyToOne(type => Shop, shop => shop.tasks, { cascade: true })
  @JoinTable()
  shop: Shop
}
